/**
 * 作者: wgx
 * 日期: 2024-10-15 14:03:33
 * 备注: 干员伙伴表
 */
package com.motu.monstercity.server.game.commondata.partner;

import io.vertx.core.json.JsonObject;

public class PartnerMainModel {
	protected int partnerId; // partner_id
	protected int quality; // 品质 (品质类型(1N，2R，3SR，4SSR，5UR))
	protected int characterType; // 性格类型 (性格类型（1开朗，2坚毅，3沉稳，4果断，5勇敢）)
	protected int talent; // 初始资质
	protected String skillBase; // 干员基础技能 (技能id;技能id;技能id)
	protected int unlockStunt; // 升星解锁条件
	protected String skillExStunt; // 干员拥有的专属技能(天赋技能) (等级=1+干员星级)
	protected String skillWorld; // 干员拥有的大世界技能
	protected String skillHalo; // 干员拥有的光环技能

	public PartnerMainModel() {
	}

	public PartnerMainModel(JsonObject obj) {
		partnerId = obj.containsKey("partner_id") ? obj.getInteger("partner_id") : 0;
		quality = obj.containsKey("quality") ? obj.getInteger("quality") : 0;
		characterType = obj.containsKey("character_type") ? obj.getInteger("character_type") : 0;
		talent = obj.containsKey("talent") ? obj.getInteger("talent") : 0;
		skillBase = obj.containsKey("skill_base") ? obj.getString("skill_base") : "";
		unlockStunt = obj.containsKey("unlock_stunt") ? obj.getInteger("unlock_stunt") : 0;
		skillExStunt = obj.containsKey("skill_ex_stunt") ? obj.getString("skill_ex_stunt") : "";
		skillWorld = obj.containsKey("skill_world") ? obj.getString("skill_world") : "";
		skillHalo = obj.containsKey("skill_halo") ? obj.getString("skill_halo") : "";
	}

	public int getPartnerId() {
		return partnerId;
	}

	public int getQuality() {
		return quality;
	}

	public int getCharacterType() {
		return characterType;
	}

	public int getTalent() {
		return talent;
	}

	public String getSkillBase() {
		return skillBase;
	}

	public int getUnlockStunt() {
		return unlockStunt;
	}

	public String getSkillExStunt() {
		return skillExStunt;
	}

	public String getSkillWorld() {
		return skillWorld;
	}

	public String getSkillHalo() {
		return skillHalo;
	}

}
